import { Controller, Get, Post, Inject } from '@nestjs/common'
import { AppService } from './app.service'
// import { LoggerClassService, LoggerService, UseFactory, UseValueService } from './logger.service'
// import { OtherService } from './other.service'
// import { CommonService } from './common.service'

@Controller('app')
export class AppController {
  // constructor(
  //   // private loggerClassService: LoggerClassService,
  //   // private loggerService: LoggerService,
  //   // @Inject('StringToken') private useValueService: UseValueService,
  //   // @Inject('FactoryToken') private useFactory: UseFactory
  //   // private commonService: CommonService
  //   // private otherService: OtherService
  //   private readonly appService: AppService
  // ) {

  // }
  // 使用Get装饰器标记index方法为HTTP GET路由处理程序
  @Get('config')
  getConfig() {
    // this.loggerClassService.log('loggerClassService')
    // this.loggerService.log('loggerService')
    // this.useValueService.log('useValueService')
    // this.useFactory.log('useFactory')
    // return 'index'
    // return this.appService.getConfig()
    return `config`
  }
  @Get('config/a')
  getConfigA() {
    return `configA`
  }
  @Post('config')
  postConfig() {
    return `post config`
  }
  @Get('abcde')
  abcde() {
    return `abcde`
  }
  // @Get('common')
  // common() {
  //   this.commonService.log('common')
  //   return 'common'
  // }
  // @Get('other')
  // other() {
  //   this.otherService.log('other')
  //   return 'other'
  // }
}
